/*
Date:20220222 20:09PM
key:1.涉及字符串都尽量提取定好空间
*/
class Solution {
public:
    string reverseLeftWords(string s, int n) {
    n%=s.size();
    string s1;
    s1.resize(s.size());
    int I=0;
    for(int i=n;i<s.size();i++)
    {
        s1[I++]=s[i];
    }
    for(int i=0;i<n;i++)
    {
        s1[I++]=s[i];
    }
    return s1;
    }
};